package com.innovation.client;

import com.innovation.message.ServerMessageProto.ServerMessage;


public interface Client {
	/**
	 * 连接服务器
	 * @return
	 */
	public boolean connect();
	
	/**
	 * 发送并接收数据
	 * @param msg
	 */
	public ServerMessage sendAndRecv(ServerMessage msg);
	
	/**
	 * 异步发送数据,不等待数据返回
	 * @param msg
	 */
	public void send(ServerMessage msg);
	
	/**
	 * 关闭连接
	 */
	public void destroy();
}
